package com.bwie.controller;

import com.bwie.service.TbProdInfoService;
import com.bwie.utils.Result;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2025/5/29 14:13
 */

@RestController
@RequestMapping("/shop/prodInfo")
public class ProdInfoController {

    @Autowired
    TbProdInfoService tbProdInfoService;

    /**
     * @description 分页获取商品详情列表
     * @params [pageInfoVo]
     * @return com.bwie.utils.Result
     * @author 军哥
     * @date 2025/5/29 14:14
     */
    @PostMapping("/getProdInfoList")
    public Result getProdInfoList(@RequestBody PageInfoVo pageInfoVo) {
        return tbProdInfoService.getProdInfoList(pageInfoVo);
    }

}
